how to get the name of the day in flutter

186

import 'package:intl/intl.dart';

void main() {
  var date = DateTime.now();
  print(DateFormat('EEEE').format(date)); // Sunday

}

Comments

Submit
0 Comments